Small fix for svg icons.
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 15 Aug 2005 03:57:04 +0000 (03:57 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 15 Aug 2005 03:57:04 +0000 (03:57 +0000)
gtk/updateiconcache.c

index f38dde7352dec5a3371ab69be433ee6d653ec08d..ae2c38d6124a7a7baf3ad7fb56a69babb80ac574 100644 (file)
@@ -869,7 +869,14 @@ write_bucket (FILE *cache, HashNode *node, int *offset)
            }
          else
            {
-             if (!write_card32 (cache, image->image_data->offset))
+             gint offset;
+
+             if (image->image_data)
+               offset = image->image_data->offset;
+             else
+               offset = 0;
+
+             if (!write_card32 (cache, offset))
                return FALSE;
            }